{% extends "basic.html" %}
{% block mainbody %}
{% load mytags %}
<h5 class="text-center">{{ info.borrow_name }}</h5>
<table class="table table-striped">
  <thead>
    <tr>
      <th>手机号</th>
      <th>金额</th>
      <th>利息</th>
      <th>时间</th>
    </tr>
  </thead>
  <tbody>
    {% for vo in list %}
    <tr>
      <td>{{ vo.user_phone }}</td>
      <td>{{ vo.investor_capital }}</td>
      <td>{{ vo.investor_interest }}</td>
      <td>{{ vo.add_time|timestampToDatetime }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
<nav>
  <ul class="pagination">
  {% if current_page.has_previous %}
    <li ><a href="?page={{ current_page.previous_page_number }}">上一页 <span class="sr-only">(current)</span></a></li>
  {% endif %}
  {% pagination current_page paginator 10 2 as page_list %}  <!-- 引用自定义标签，并传入参数 -->
  {{ page_list|safe }}  <!--  显示 -->
  {% if current_page.has_next %}
    <li><a href="?page={{ current_page.next_page_number }}">下一页 <span class="sr-only">(current)</span></a></li>
  {% endif %}
  </ul>
</nav>
{% endblock %}